<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2024/5/21
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="html/assets/css/vendor/register.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div class="container">
    <div class="login-wrapper">
        <div class="header">注册</div>
        <!-- 添加 form 元素并设置 action 属性 -->
        <form action="registerServlet" method="post">
            <div class="form-wrapper">
                <input type="text" name="username" placeholder="用户名" class="input-item">
                <input type="text" name="password" placeholder="密码" class="input-item"> <!-- 修改为 type="password" -->
                <input type="text" name="email" placeholder="邮箱" class="input-item">
                <input type="text" name="phone" placeholder="手机号" class="input-item">
                <input type="text" name="address" placeholder="地址" class="input-item">
                <input type="submit" value="注册" class="btn">
            </div>

            <div class="msg">
                <a href="login.jsp">前往登录</a>
            </div>
        </form> <!-- 关闭 form 元素 -->
    </div>
</div>
</body>
</html>